/* 
 * File:   ClientConfFileManagerTest_2.cpp
 * Author: max
 *
 * Created on May 31, 2013, 12:37:50 AM
 */

#include <stdlib.h>
#include <iostream>
#include "common_ClientConfFileManager.h"

using namespace TP;

/*
 * Simple C++ Test Suite
 */

void test1() {
    std::cout << "ClientConfFileManagerTest_2 test 1" << std::endl;
    
    ClientConfFileManager config ("client.config.xml");
    
    config.SetIntervaloPolling(2000);
    config.SetIpServidor("127.0.0.1");
    config.SetPassword("1234");
    config.SetPathAU("/home/Max/temp");
    config.SetPuertoServidor("2500");
    config.SetUsuario("max");
    
    config.SaveChanges();
}

void test2() {
    std::cout << "ClientConfFileManagerTest_2 test 2" << std::endl;
    std::cout << "%TEST_FAILED% time=0 testname=test2 (ClientConfFileManagerTest_2) message=error message sample" << std::endl;
}

int main(int argc, char** argv) {
    std::cout << "%SUITE_STARTING% ClientConfFileManagerTest_2" << std::endl;
    std::cout << "%SUITE_STARTED%" << std::endl;

    std::cout << "%TEST_STARTED% test1 (ClientConfFileManagerTest_2)" << std::endl;
    test1();
    std::cout << "%TEST_FINISHED% time=0 test1 (ClientConfFileManagerTest_2)" << std::endl;

    std::cout << "%TEST_STARTED% test2 (ClientConfFileManagerTest_2)\n" << std::endl;
    test2();
    std::cout << "%TEST_FINISHED% time=0 test2 (ClientConfFileManagerTest_2)" << std::endl;

    std::cout << "%SUITE_FINISHED% time=0" << std::endl;

    return (EXIT_SUCCESS);
}

